import { RestService, Rest } from '@abp/ng.core';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root',
})
export class LogService {
  apiName = 'Default';
  

  log = (operatorName: string, operationType: string, description: string, inboundManageId?: string, config?: Partial<Rest.Config>) =>
    this.restService.request<any, void>({
      method: 'POST',
      url: '/api/app/log/log',
      params: { operatorName, operationType, description, inboundManageId },
    },
    { apiName: this.apiName,...config });

  constructor(private restService: RestService) {}
}